package com.mf.entity.req.basic.search;

import com.mf.emuns.basic.EnumPermType;
import com.mf.entity.req.basic.reqPublic.ReqPublicPaging;
import com.mf.valid.ValidEnumValue;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;

import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.List;

/**
 * 权限表查询条件
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SearchReqPermission extends ReqPublicPaging implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "关键值：权限名称，权限描述")
    private String key;

    @Schema(description = "权限类型：菜单，按钮，非前端操作权限(后端验证权限不需要前端页面配合)")
    @ValidEnumValue(enumClass = EnumPermType.class)
    private List<String> type;
}
